﻿// YamlContext.cs
//
// Copyright 2008 by Burt Harris
// Licensed under the Microsoft Public License (Ms-PL)
// See: http://www.codeplex.com/yaml/license
//
using System;
using YaTools.Yaml;

namespace YaTools.Yaml.Serialization
{
    [Obsolete("Replace with Emitter/Mode/Waypoint")]
    public class YamlContext
    {
        public OldYamlWriter Writer { get; private set; }
        public YamlReader Reader { get; private set; }
        public Type ExpectedType { get; set; }

        public YamlContext(OldYamlWriter writer)
        {
            this.Writer = writer;
            this.Reader = null;
        }

        public YamlContext(YamlReader reader)
        {
            this.Writer = null;
            this.Reader = reader;
        }
    }

}